package moodish.dummy.messages;

import java.io.Serializable;

import moodish.comm.ClientSideMessage;

public class ClientSideMessageClass implements Serializable, ClientSideMessage {

	private static final long serialVersionUID = 1L;
	private Type type;
	private String nickname;
	private String payload;

	public ClientSideMessageClass(String nickname, String payload,Type type) {
		this.nickname = nickname;
		this.type = type;
		this.payload = payload;
	}
	
	public String getPayload() {
		// TODO Auto-generated method stub
		return this.payload;
	}
	
	@Override
	public Type getType() {
		// TODO Auto-generated method stub
		return this.type;
	}

	@Override
	public String getSendersNickname() {
		// TODO Auto-generated method stub
		return this.nickname;
	}

}
